.class public Les/ck;
.super Les/bk;
.source "GdtAdProvider.java"


# instance fields
.field private c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

.field private d:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/bk;-><init>()V

    const-string v0, ""

    .line 2
    iput-object v0, p0, Les/ck;->d:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Les/ck;)Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    return-object p0
.end method

.method private b(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;
    .locals 3

    .line 1
    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v1, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    if-eqz v1, :cond_0

    iget-object v1, p0, Les/ck;->d:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    iget-object p1, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    return-object p1

    .line 4
    :cond_0
    iput-object v0, p0, Les/ck;->d:Ljava/lang/String;

    .line 5
    iget-object v0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {v0}, Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;->close()V

    .line 7
    iget-object v0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    invoke-virtual {v0}, Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;->destroy()V

    const/4 v0, 0x0

    .line 8
    iput-object v0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    .line 9
    :cond_1
    iget-object v0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    if-nez v0, :cond_2

    .line 10
    new-instance v0, Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    iget-object v1, p0, Les/ck;->d:Ljava/lang/String;

    new-instance v2, Les/ck$c;

    invoke-direct {v2, p0, p1, p2, p3}, Les/ck$c;-><init>(Les/ck;Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    const-string p2, "1107713223"

    invoke-direct {v0, p1, p2, v1, v2}, Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;-><init>(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/interstitial2/UnifiedInterstitialADListener;)V

    iput-object v0, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    .line 11
    :cond_2
    iget-object p1, p0, Les/ck;->c:Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    return-object p1
.end method


# virtual methods
.method public a(Landroid/app/Activity;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
    .locals 8

    .line 2
    :try_start_0
    invoke-virtual {p2}, Landroid/view/ViewGroup;->removeAllViews()V

    const-string v0, "AdManager"

    .line 3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "\u5f00\u59cb\u8bf7\u6c42\u5e7f\u70b9\u901a\u95ea\u5c4f\u5e7f\u544a\uff0c\u5e7f\u544aid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    new-instance v0, Lcom/qq/e/ads/splash/SplashAD;

    const-string v4, "1107713223"

    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Les/ck$a;

    invoke-direct {v6, p0, p3, p4, p2}, Les/ck$a;-><init>(Les/ck;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Landroid/view/ViewGroup;)V

    const/16 v7, 0x1388

    move-object v2, v0

    move-object v3, p1

    invoke-direct/range {v2 .. v7}, Lcom/qq/e/ads/splash/SplashAD;-><init>(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/splash/SplashADListener;I)V

    .line 5
    invoke-virtual {v0, p2}, Lcom/qq/e/ads/splash/SplashAD;->fetchAndShowIn(Landroid/view/ViewGroup;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    const/4 p1, -0x1

    const-string p2, "gdt-splash err"

    .line 6
    invoke-virtual {p0, p3, p4, p1, p2}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    :goto_0
    return-void
.end method

.method public a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
    .locals 1

    .line 12
    invoke-direct {p0, p1, p2, p3}, Les/ck;->b(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 13
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "\u5f00\u59cb\u8bf7\u6c42\u5e7f\u70b9\u901a\u63d2\u5c4f\u5e7f\u544a\uff0c\u5e7f\u544aid="

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    const-string p3, "AdManager"

    invoke-static {p3, p2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 14
    invoke-virtual {p1}, Lcom/qq/e/ads/interstitial2/UnifiedInterstitialAD;->loadAD()V

    :cond_0
    return-void
.end method

.method public a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/h;)V
    .locals 0

    return-void
.end method

.method public a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
    .locals 8

    .line 7
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "\u5f00\u59cb\u8bf7\u6c42\u5e7f\u70b9\u901a\u539f\u751f\u5e7f\u544a\uff0c\u5e7f\u544aid="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "AdManager"

    invoke-static {v1, v0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 8
    invoke-static {v0}, Lcom/qq/e/ads/cfg/MultiProcessFlag;->setMultiProcess(Z)V

    .line 9
    new-instance v7, Lcom/qq/e/ads/nativ/NativeExpressAD;

    new-instance v3, Lcom/qq/e/ads/nativ/ADSize;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v3, v1, v2}, Lcom/qq/e/ads/nativ/ADSize;-><init>(II)V

    .line 10
    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getGdtId()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Les/ck$b;

    invoke-direct {v6, p0, p2, p3, p4}, Les/ck$b;-><init>(Les/ck;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    const-string v4, "1107713223"

    move-object v1, v7

    move-object v2, p1

    invoke-direct/range {v1 .. v6}, Lcom/qq/e/ads/nativ/NativeExpressAD;-><init>(Landroid/content/Context;Lcom/qq/e/ads/nativ/ADSize;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/nativ/NativeExpressAD$NativeExpressADListener;)V

    .line 11
    invoke-virtual {v7, v0}, Lcom/qq/e/ads/nativ/NativeExpressAD;->loadAD(I)V

    return-void
.end method

.method public c()Lcom/estrongs/android/pop/app/ad/cn/AdChannel;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_GDT:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    return-object v0
.end method
